package cn.zn.job.mapper;

import cn.zn.job.entity.SysJobLog;
import cn.zn.job.vo.SysJobLogPageVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 定时任务调度日志表 Mapper 接口
 * </p>
 *
 * @author zn-admin
 * @since 2021-01-29
 */
public interface SysJobLogMapper extends BaseMapper<SysJobLog> {

    /**
     * 获取quartz调度器日志的计划任务
     *
     * @param vo 调度日志信息
     * @return 调度任务日志集合
     */
    List<SysJobLog> selectJobLogList(@Param("vo") SysJobLogPageVo vo);

    /**
     * 获取quartz调度器日志的计划任务
     *
     * @param vo 调度日志信息
     * @return 调度任务日志集合
     */
    IPage<SysJobLog> selectJobLogList(Page<SysJobLog> page, @Param("vo") SysJobLogPageVo vo);

    /**
     * 清空调度器日志
     *
     * @return 结果
     */
    int cleanJobLog();

}
